package com.fingerchar.db.dao.ext;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.fingerchar.db.domain.FcUser;
import com.fingerchar.db.dto.CalSumDto;
import com.fingerchar.db.vo.FcUserVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.List;

/*
* 扩展userMapper
* */
public interface FcUserExtMapper {
	
    @SuppressWarnings("rawtypes")
	IPage<FcUserVo> getList2(IPage<FcUserVo> page, @Param(Constants.WRAPPER) Wrapper ew);

    int addUsdtAmount(@Param("address")String address, @Param("amount") BigInteger amount);

    int reduceUsdtAmount(@Param("address")String address, @Param("amount")BigInteger amount);

    int addTntAmount(@Param("address")String address, @Param("amount") BigInteger amount);

    int reduceTntAmount(@Param("address")String address, @Param("amount")BigInteger amount);

    int addCalAmount(@Param("address")String address, @Param("amount") BigInteger amount);

    int reduceCalAmount(@Param("address")String address, @Param("amount")BigInteger amount);

    FcUser getAndLockByAddress(@Param(Constants.WRAPPER) Wrapper ew);
}
